package com.zhenlong01.zhentest.controller;

import com.zhenlong01.zhentest.dao.EquipmentDao;
import com.zhenlong01.zhentest.entity.Equipment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @date 2019-08-28 22:10
 */
@RestController
public class BaoXiuController {
    @Autowired
    EquipmentDao equipmentDao;

    @GetMapping("/baoxiu")
    public Equipment baoxiu(String eno){
        return equipmentDao.findByENo(eno);
    }
}